//
//  GoodsTableViewCell.m
//  ShouYi
//
//  Created by yurui on 16/3/14.
//  Copyright © 2016年 yurui. All rights reserved.
//

#import "GoodsTableViewCell.h"

@implementation GoodsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = kViewBackColor;
        UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kWidth, 105)];
        view.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:view];
        
        self.icon_ig = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 87, 87)];
        self.icon_ig.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_icon_ig];
        
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(107, 5, kWidth - 127, 40)];
        self.titleLabel.numberOfLines = 0;
        self.titleLabel.font = [UIFont systemFontOfSize:12];
       // self.titleLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:_titleLabel];
        
        self.price = [[UILabel alloc]initWithFrame:CGRectMake(107, 45, 40, 15)];
        self.price.font = [UIFont systemFontOfSize:11];
        self.price.textColor = [UIColor grayColor];
        [self.contentView addSubview:_price];
        
        self.money = [[UILabel alloc]initWithFrame:CGRectMake(152, 45, 100, 15)];
        self.money.textColor = [UIColor grayColor];
        self.money.font = [UIFont systemFontOfSize:11];
        [self.contentView addSubview:_money];
        
        self.shengYuNum = [[UILabel alloc]initWithFrame:CGRectMake(107, 65, 100, 15)];
        self.shengYuNum.font = [UIFont systemFontOfSize:11];
        self.shengYuNum.textColor = [UIColor grayColor];
        [self.contentView addSubview:_shengYuNum];
        
        self.saleNum = [[UILabel alloc]initWithFrame:CGRectMake(107, 85, 60, 15)];
        self.saleNum.textColor = [UIColor grayColor];
        self.saleNum.font = [UIFont systemFontOfSize:11];
        [self.contentView addSubview:_saleNum];
        
        self.collectNum = [[UILabel alloc]initWithFrame:CGRectMake(172, 85, 60, 15)];
        self.collectNum.font = [UIFont systemFontOfSize:11];
        self.collectNum.textColor = [UIColor grayColor];
        [self.contentView addSubview:_collectNum];
    }
    return self;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
